/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Affichage;

import Metier.Dialogue;
import Metier.POI;
import Metier.Parcours;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.swing.DefaultListModel;
import javax.swing.JFrame;

/**
 *
 * @author Korahk
 */
public class GestionParcours extends JFrame implements ActionListener {

    // Variables declaration - do not modify 
    private javax.swing.JComboBox CB_SupprimerParcours;
    private javax.swing.JButton BTN_SupprimerParcours;
    private javax.swing.JLabel LBL_SupprimerParcours;
    private javax.swing.JButton BTN_Add;
    private javax.swing.JButton BTn_Modifier;
    private javax.swing.JComboBox CB_ChoixParcours;
    private javax.swing.JList JL_ListePOI;
    private javax.swing.JList JL_ListePoiMod;
    private javax.swing.JLabel LBL_Descriptif;
    private javax.swing.JLabel LBL_DescriptifMod;
    private javax.swing.JLabel LBL_LibelleMod;
    private javax.swing.JLabel LBL_ListPoi;
    private javax.swing.JLabel LBL_ListePoi;
    private javax.swing.JLabel LabelChoixParcours;
    private javax.swing.JLabel LibelleAdd;
    private javax.swing.JTextArea TA_Descriptif;
    private javax.swing.JTextArea TA_DescriptifMod;
    private javax.swing.JTextField TXT_Libelle;
    private javax.swing.JTextField TXT_LibelleMod;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane32;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JTabbedPane jTabbedPane1;
    private Dialogue dial;
    private Affichage Affi;
    private String oldLibelle;
    private String oldDescriptif;
    private List<String> liste_OLDPOI = new ArrayList<>();
    // End of variables declaration  

    public GestionParcours() throws IOException {
        dial = new Dialogue();
        initComponents();
    }

    public void Afficher_Gestion_Parcours() {
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(GestionParcours.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(GestionParcours.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(GestionParcours.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(GestionParcours.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }

    }

    public void run() throws IOException {
        new GestionParcours().setVisible(true);
    }

    public void actionPerformed(ActionEvent e) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
    private void initComponents() {

        CB_SupprimerParcours = new javax.swing.JComboBox();
        LBL_SupprimerParcours = new javax.swing.JLabel();
        BTN_SupprimerParcours = new javax.swing.JButton();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        LibelleAdd = new javax.swing.JLabel();
        TXT_Libelle = new javax.swing.JTextField();
        BTN_Add = new javax.swing.JButton();
        LBL_ListPoi = new javax.swing.JLabel();
        LBL_Descriptif = new javax.swing.JLabel();
        jScrollPane9 = new javax.swing.JScrollPane();
        TA_Descriptif = new javax.swing.JTextArea();
        jScrollPane1 = new javax.swing.JScrollPane();
        JL_ListePOI = new javax.swing.JList();
        jPanel2 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        LBL_LibelleMod = new javax.swing.JLabel();
        TXT_LibelleMod = new javax.swing.JTextField();
        jScrollPane10 = new javax.swing.JScrollPane();
        JL_ListePoiMod = new javax.swing.JList();
        BTn_Modifier = new javax.swing.JButton();
        LBL_ListePoi = new javax.swing.JLabel();
        LBL_DescriptifMod = new javax.swing.JLabel();
        jScrollPane32 = new javax.swing.JScrollPane();
        TA_DescriptifMod = new javax.swing.JTextArea();
        CB_ChoixParcours = new javax.swing.JComboBox();
        LabelChoixParcours = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        LibelleAdd.setText("Libelle :");

        TXT_Libelle.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TXT_LibelleActionPerformed(evt);
            }
        });

        BTN_Add.setText("Ajouter");
        BTN_Add.addMouseListener(new MouseListener() {
            @Override
            public void mouseClicked(MouseEvent me) {
                List<String> ListSelectedIDPOI = new ArrayList<>();

                ListSelectedIDPOI = JL_ListePOI.getSelectedValuesList();

                dial.addParcours(TXT_Libelle.getText(), ListSelectedIDPOI, TA_Descriptif.getText(), Affichage.getLieu().getCarte());
                dispose();

            }

            @Override
            public void mousePressed(MouseEvent me) {
            }

            @Override
            public void mouseReleased(MouseEvent me) {
            }

            @Override
            public void mouseEntered(MouseEvent me) {
            }

            @Override
            public void mouseExited(MouseEvent me) {
            }
        });

        LBL_ListPoi.setText("Liste des POI :");

        LBL_Descriptif.setText("Descriptif :");

        TA_Descriptif.setColumns(20);
        TA_Descriptif.setRows(5);
        jScrollPane9.setViewportView(TA_Descriptif);

        jScrollPane1.setViewportView(JL_ListePOI);


        DefaultListModel<String> ListPois;
        ListPois = new DefaultListModel<>();
        List<POI> list_pois = new ArrayList<>();
        list_pois = dial.getListPoiListModel(Affichage.getLieu().getCarte());

        for (POI poi : list_pois) {
            ListPois.addElement(poi.getLibelle());
        }
        JL_ListePOI.setModel(ListPois);


        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
                jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(37, 37, 37)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(LibelleAdd)
                .addComponent(BTN_Add)
                .addComponent(LBL_Descriptif))
                .addGap(0, 0, Short.MAX_VALUE))
                .addComponent(TXT_Libelle)))
                .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap(37, Short.MAX_VALUE)
                .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(LBL_ListPoi)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap()));
        jPanel5Layout.setVerticalGroup(
                jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(LibelleAdd)
                .addComponent(LBL_ListPoi))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                .addGroup(jPanel5Layout.createSequentialGroup()
                .addComponent(TXT_Libelle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(LBL_Descriptif)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addComponent(jScrollPane1))
                .addGap(18, 18, 18)
                .addComponent(BTN_Add)
                .addContainerGap(25, Short.MAX_VALUE)));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 343, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))));
        jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 327, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(0, 27, Short.MAX_VALUE)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 28, Short.MAX_VALUE))));

        jTabbedPane1.addTab("Ajouter", jPanel1);

        LBL_LibelleMod.setText("Libelle :");

        TXT_LibelleMod.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TXT_Libelle1ActionPerformed(evt);
            }
        });

        JL_ListePoiMod.setModel(new javax.swing.AbstractListModel() {
            String[] strings = {"1", "2"};

            public int getSize() {
                return strings.length;
            }

            public Object getElementAt(int i) {
                return strings[i];
            }
        });
        jScrollPane10.setViewportView(JL_ListePoiMod);

        BTn_Modifier.setText("Modifier");


        LBL_ListePoi.setText("Liste des POI :");

        LBL_DescriptifMod.setText("Descriptif :");

        TA_DescriptifMod.setColumns(20);
        TA_DescriptifMod.setRows(5);
        jScrollPane32.setViewportView(TA_DescriptifMod);



        List<Parcours> liste_parcours = new ArrayList<>();
        liste_parcours = dial.SelectParcoursModification();

        for (Parcours parcours : liste_parcours) {
            CB_ChoixParcours.addItem(parcours.getLibelle());
        }
        JL_ListePoiMod.setModel(ListPois);
        CB_ChoixParcours.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent ae) {
                List<Parcours> liste_parcours = new ArrayList<>();
                List<POI> liste_poi = new ArrayList<>();
                List<POI> liste_poiParcours = new ArrayList<>();
                liste_parcours = dial.SelectParcoursModification();
                liste_poi = dial.getListPoiListModel(Affichage.getLieu().getCarte());
                String LibelleParcoursChoisi = CB_ChoixParcours.getSelectedItem().toString();
                liste_poiParcours = dial.SelectPOIByParcours(LibelleParcoursChoisi);
                int indexJLIST;

                for (Parcours parcours : liste_parcours) {

                    if (parcours.getLibelle().equals(LibelleParcoursChoisi)) {
                        TXT_LibelleMod.setText(parcours.getLibelle());
                        oldLibelle = parcours.getLibelle();
                        oldDescriptif = parcours.getTexte();
                        TA_DescriptifMod.setText(parcours.getTexte());
                        indexJLIST = 0;
                        int[] tab_index;
                        List<Integer> list_index = new ArrayList<>();
                        int i = 0;
                        for (POI listpoi : liste_poi) {
                            for (POI listpoiparcours : liste_poiParcours) {
                                if (listpoi.getLibelle().equals(listpoiparcours.getLibelle())) {
                                    list_index.add(indexJLIST);
                                    i++;
                                }
                            }
                            indexJLIST++;
                        }
                        tab_index = new int[i];
                        int y = 0;
                        for (Integer chiffre : list_index) {
                            tab_index[y] = chiffre;
                            y++;
                        }
                        JL_ListePoiMod.setSelectedIndices(tab_index);
                    }

                }
                liste_OLDPOI = JL_ListePoiMod.getSelectedValuesList();
            }
        });
        BTn_Modifier.addMouseListener(new MouseListener() {
            @Override
            public void mouseClicked(MouseEvent me) {
                if (!(TXT_LibelleMod.getText().isEmpty())) {
                    List<String> ListSelectedIDPOI = new ArrayList<>();
                    ListSelectedIDPOI = JL_ListePoiMod.getSelectedValuesList();
                    String OldLibelle = CB_ChoixParcours.getSelectedItem().toString();


                    dial.ModifParcours(oldLibelle, TXT_LibelleMod.getText(), oldDescriptif, TA_DescriptifMod.getText(), liste_OLDPOI, ListSelectedIDPOI);

                    dispose();
                }
            }

            @Override
            public void mousePressed(MouseEvent me) {
            }

            @Override
            public void mouseReleased(MouseEvent me) {
            }

            @Override
            public void mouseEntered(MouseEvent me) {
            }

            @Override
            public void mouseExited(MouseEvent me) {
            }
        });



        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
                jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel6Layout.createSequentialGroup()
                .addGap(37, 37, 37)
                .addComponent(BTn_Modifier)
                .addGap(0, 0, Short.MAX_VALUE))
                .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel6Layout.createSequentialGroup()
                .addComponent(LBL_LibelleMod)
                .addGap(0, 0, Short.MAX_VALUE))
                .addComponent(TXT_LibelleMod)))
                .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel6Layout.createSequentialGroup()
                .addComponent(LBL_DescriptifMod)
                .addGap(0, 0, Short.MAX_VALUE))
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jScrollPane32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addGap(18, 18, 18)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(LBL_ListePoi)
                .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(CB_ChoixParcours, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap()));
        jPanel6Layout.setVerticalGroup(
                jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel6Layout.createSequentialGroup()
                .addGap(6, 6, 6)
                .addComponent(CB_ChoixParcours, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(LBL_LibelleMod)
                .addComponent(LBL_ListePoi))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                .addGroup(jPanel6Layout.createSequentialGroup()
                .addComponent(TXT_LibelleMod, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(LBL_DescriptifMod)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane32, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addComponent(jScrollPane10))
                .addGap(18, 18, 18)
                .addComponent(BTn_Modifier)
                .addContainerGap(20, Short.MAX_VALUE)));

        LabelChoixParcours.setText("Choisir un parcours");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
                jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(LabelChoixParcours)
                .addContainerGap(243, Short.MAX_VALUE))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(0, 20, Short.MAX_VALUE)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 21, Short.MAX_VALUE))));
        jPanel2Layout.setVerticalGroup(
                jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(37, 37, 37)
                .addComponent(LabelChoixParcours)
                .addContainerGap(276, Short.MAX_VALUE))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(0, 27, Short.MAX_VALUE)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 28, Short.MAX_VALUE))));

        jTabbedPane1.addTab("Modifier", jPanel2);


        for (Parcours parcours : liste_parcours) {
            CB_SupprimerParcours.addItem(parcours.getLibelle());
        }


        CB_SupprimerParcours.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CB_SupprimerParcoursActionPerformed(evt);
            }
        });

        LBL_SupprimerParcours.setText("Supprimer un parcours :");

        BTN_SupprimerParcours.setText("Supprimer le parcours");

        BTN_SupprimerParcours.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent ae) {
                dial.SupprimerParcours(CB_SupprimerParcours.getSelectedItem().toString());
                dispose();
            }
        });
        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
                jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap(28, Short.MAX_VALUE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                .addComponent(BTN_SupprimerParcours, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addComponent(LBL_SupprimerParcours)
                .addGap(18, 18, 18)
                .addComponent(CB_SupprimerParcours, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap()));
        jPanel3Layout.setVerticalGroup(
                jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(112, 112, 112)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(CB_SupprimerParcours, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(LBL_SupprimerParcours))
                .addGap(29, 29, 29)
                .addComponent(BTN_SupprimerParcours, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(118, Short.MAX_VALUE)));

        jTabbedPane1.addTab("Supprimer", jPanel3);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.Alignment.TRAILING));
        layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jTabbedPane1));

        jTabbedPane1.getAccessibleContext().setAccessibleName("Ajouter");

        pack();
    }// </editor-fold>                        

    private void TXT_LibelleActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

    private void BTN_AddActionPerformed(java.awt.event.ActionEvent evt) {
    }

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

    private void TXT_Libelle1ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

    private void CB_SupprimerParcoursActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
}